package com.xbongbong.sso.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 
 * tb_oauth_user
 * 
 * @author bomfish
 */
@Getter
@Setter
public class OauthUserEntity implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 公司corpid
     */
    private String corpid;

    /**
     * 销帮帮中的userId
     */
    private String userId;

    /**
     * 自定义唯一值
     */
    private String code;

    /**
     * 更新时间
     */
    private Long updateTime;

    /**
     * 添加时间
     */
    private Long addTime;

    /**
     * 删除标识
     */
    private Integer del;

    private static final long serialVersionUID = 1L;

    public OauthUserEntity() {
        long now = DateUtil.getInt();
        this.updateTime = now;
        this.addTime = now;
        this.del = 0;
    }
}